package server.shops;

import client.inventory.IItem;
import client.inventory.Item;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class MaplePlayerShopItem {
    public IItem item;
    public short bundles;
    public int price;
    public int lx;
    public int jyhid;
    private ReentrantLock lock;

    public Lock getLock() {
        return this.lock;
    }

    public MaplePlayerShopItem(IItem item, short bundles, int price) {
        this.lx = 0;
        this.jyhid = -1;
        this.lock = new ReentrantLock();
        this.item = item;
        this.bundles = bundles;
        this.price = price;
    }

    public MaplePlayerShopItem(Item item, short bundles, int price, int 类型, int 交易行id) {
        this.lx = 0;
        this.jyhid = -1;
        this.lock = new ReentrantLock();
        this.item = item;
        this.bundles = bundles;
        this.price = price;
        this.lx = 类型;
        this.jyhid = 交易行id;
    }
}
